from django.urls import re_path
from django.urls import path
from django.urls import path, include
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.routers import DefaultRouter
from timetasker.views import ChannelViewSet

from . import views

router = DefaultRouter()
router.register(r'channels', ChannelViewSet, basename='channel')

urlpatterns = [
    path('task/', views.TestApscheduler.as_view(), name='task'),
    re_path('task/(?P<task_id>[0-9]+)$', views.TestApschedulerDetail.as_view(), name='taks-id'),
    path('', include(router.urls))

]

# urlpatterns = format_suffix_patterns(urlpatterns)
